<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			
			var list=new Array("陕西","深圳","上海");
			
			function funA(){
				var len=list.length;
				document.writeln(len);
				funB();
			}
			function funB(){
				list[list.length]="浙江";
				document.writeln(list+"<br/>");
				list.push("山西");
				document.writeln(list+"<br/>");
				list.splice(2,0,"甘肃");
				document.writeln(list+"<br/>");
				funC();
			}
			
			function funC(){
				list.pop();
				document.writeln(list+"<br/>");
				funD();
			}
			
			function funD(){
				list.reverse();  //倒序
				document.writeln(list+"<br/>");
				list.sort();   //排序
				document.writeln(list+"<br/>");
			}
			window.onload=funA;
		</script>
	</head>
	<body>
	</body>
</html>
